#--------------------------------------
# Test branch and jumps
#--------------------------------------
	org	0x0000
	ori		$1, $zero, 0xBA5C
	nop
	nop
	nop
	nop
	ori		$2, $zero, 0x0080
	nop
	nop
	nop
	nop
	ori		$15, $zero, jmpR
	nop
	nop
	nop
	nop
	beq		$zero, $zero, braZ
	nop
	nop
	nop
	nop
	sw		$1, 0($2)
	nop
	nop
	nop
	nop
braZ:
	nop
	nop
	nop
	nop
	jal		braR
	nop
	nop
	nop
	nop
	sw		$1, 4($2)
	nop
	nop
	nop
	nop
end:
	nop
	nop
	nop
	nop
	sw		$ra, 16($2)
	nop
	nop
	nop
	nop
	HALT
braR:
	nop
	nop
	nop
	nop
	or		$3, $zero, $ra
	nop
	nop
	nop
	nop
	sw		$ra, 8($2)
	nop
	nop
	nop
	nop
	jal		jmpR
	nop
	nop
	nop
	nop
	sw		$1,	12($2)
jmpR:
	nop
	nop
	nop
	nop
	bne		$ra, $3, end
	nop
	nop
	nop
	nop
	halt
